<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<div class="airportFullInfo">
    <div class="airportFullInfoHeader">
        <span class="airportFullInfoHeader">
            ${airport.name}
        </span>
    </div>
    <div class="airInfoRight">
        <p><spring:message code="flightInfo.country" />: <a href="country?id=${airport.city.country.id}">${airport.city.country.name}</a></p>
        <p><spring:message code="flightInfo.city" />: <a href="city?id=${airport.city.id}">${airport.city.name}</a></p>
        <p><spring:message code="flightInfo.code" />: ${airport.code}</p>
    </div>
    <div style="clear: right">From</div>
    <div class="flightsOut">
        <c:forEach items="${airport.flightsOut}" var="flight">
            <c:set var="flight" value="${flight}" scope="request" />
            <jsp:include page="flightInfo.jsp" />
        </c:forEach>
    </div>
    To
    <div class="flightsIn">
        <c:forEach items="${airport.flightsIn}" var="flight">
            <c:set var="flight" value="${flight}" scope="request" />
            <jsp:include page="flightInfo.jsp" />
        </c:forEach>
    </div>
</div>